; Lauma

; Constants -------------------------

[Constants]
global persist $UP1 = 0
global persist $UP2 = 1
global persist $ALT_UP1 = 0
global persist $ALT_UP2 = 0
global persist $DOWN = 0
global persist $ALT_DOWN = 0
global persist $LEFT = 0
global persist $ALT_LEFT1 = 0
global persist $ALT_LEFT2 = 0
global persist $RIGHT = 0
global persist $ALT_RIGHT = 0
global persist $SKIN = 0
global $active

[KeySwapSKIN]
key = ]
condition = $active == 1
type = cycle
$SKIN = 0,1

[KeySwapUP1]
key = NO_ALT VK_UP
condition = $active == 1
type = cycle
$UP1 = 0,1

[KeySwapUP2]
key = NO_ALT VK_UP
condition = $active == 1
type = cycle
$UP2 = 0,1

[KeySwapALT_UP1]
key = ALT VK_UP
condition = $active == 1
type = cycle
$ALT_UP1 = 0,1

[KeySwapALT_UP2]
key = ALT VK_UP
condition = $active == 1
type = cycle
$ALT_UP2 = 0,1

[KeySwapDOWN]
key = NO_ALT VK_DOWN
condition = $active == 1
type = cycle
$DOWN = 0,1

[KeySwapALT_DOWN]
key = ALT VK_DOWN
condition = $active == 1
type = cycle
$ALT_DOWN = 0,1

[KeySwapLEFT]
key = NO_ALT VK_LEFT
condition = $active == 1
type = cycle
$LEFT = 0,1

[KeySwapALT_LEFT1]
key = ALT VK_LEFT
condition = $active == 1
type = cycle
$ALT_LEFT1 = 0,1

[KeySwapALT_LEFT2]
key = ALT VK_LEFT
condition = $active == 1
type = cycle
$ALT_LEFT2 = 0,1

[KeySwapRIGHT]
key = NO_ALT VK_RIGHT
condition = $active == 1
type = cycle
$RIGHT = 0,1

[KeySwapALT_RIGHT]
key = ALT VK_RIGHT
condition = $active == 1
type = cycle
$ALT_RIGHT = 0,1

[Present]
post $active = 0

; Overrides -------------------------

[TextureOverrideLaumaPosition]
hash = 89e96109
vb0 = ResourceLaumaPosition
$active = 1

[TextureOverrideLaumaBlend]
hash = 8226cf84
vb1 = ResourceLaumaBlend
handling = skip
draw = 94260,0 

[TextureOverrideLaumaTexcoord]
hash = d8e6d8e4
vb1 = ResourceLaumaTexcoord

[TextureOverrideLaumaVertexLimitRaise]
hash = cecefbb2
;override_vertex_count = 94260
;override_byte_stride = 92

[TextureOverrideLaumaEyePosition]
hash = 7e27b643
vb0 = ResourceLaumaEyePosition

[TextureOverrideLaumaEyeBlend]
hash = 6442cc7e
vb1 = ResourceLaumaEyeBlend
handling = skip
draw = 266,0 

[TextureOverrideLaumaEyeTexcoord]
hash = 6eb0f6d7
vb1 = ResourceLaumaEyeTexcoord

[TextureOverrideLaumaEyeVertexLimitRaise]
hash = 0a7a76aa
;override_vertex_count = 266
;override_byte_stride = 84

[TextureOverrideLaumaHairPosition]
hash = f25edf24
vb0 = ResourceLaumaHairPosition

[TextureOverrideLaumaHairBlend]
hash = 158785a8
vb1 = ResourceLaumaHairBlend
handling = skip
draw = 2420,0 

[TextureOverrideLaumaHairTexcoord]
hash = 1e0aafe0
vb1 = ResourceLaumaHairTexcoord

[TextureOverrideLaumaHairVertexLimitRaise]
hash = e26e1db3
;override_vertex_count = 2420
;override_byte_stride = 84

[TextureOverrideLaumaIB]
hash = ce158bd6
handling = skip

[TextureOverrideLaumaHead]
hash = ce158bd6
match_first_index = 0
ib = ResourceLaumaHeadIB
ps-t0 = ResourceLaumaHeadNormalMap
ps-t1 = ResourceLaumaHeadDiffuse
ps-t2 = ResourceLaumaHeadLightMap
run = CommandList\global\ORFix\ORFix
; LaumaHead-vb0=89e96109.txt (4116)
drawindexed = 16680, 0, 0
; LaumaHead
	; ALT_LEFT2 (945)
if $ALT_LEFT2 == 0
	drawindexed = 2394, 16680, 0
endif

[TextureOverrideLaumaBody]
hash = ce158bd6
match_first_index = 19074
ib = ResourceLaumaBodyIB
ps-t0 = ResourceLaumaBodyDiffuse
ps-t1 = ResourceLaumaBodyLightMap
if $SKIN == 0
	ps-t0 = ResourceLaumaBodyDiffuse
        ps-t1 = ResourceLaumaBodyLightMap
else if $SKIN == 1
	ps-t0 = Resource1LaumaBodyDiffuse
        ps-t1 = Resource1LaumaBodyLightMap
endif
; LaumaBody-vb0=89e96109.txt (26788)
drawindexed = 131784, 0, 0
; LaumaBody
	; ALT_UP2 (160)
if $ALT_UP2 == 0
	drawindexed = 396, 131784, 0
endif
	; LaumaBody-vb0=89e96109.txt (26788)
	drawindexed = 131784, 132180, 0
	; UP2 (1284)
if $UP2 == 0
	drawindexed = 7680, 263964, 0
endif

[TextureOverrideLaumaDress]
hash = ce158bd6
match_first_index = 75702
ib = ResourceLaumaDressIB
ps-t0 = ResourceLaumaDressNormalMap
ps-t1 = ResourceLaumaDressDiffuse
ps-t2 = ResourceLaumaDressLightMap
run = CommandList\global\ORFix\ORFix
; LaumaDress-vb0=89e96109.txt (206)
drawindexed = 708, 0, 0
; LaumaDress
	; ALT_DOWN (86)
if $ALT_DOWN == 0
	drawindexed = 366, 708, 0
endif
	; ALT_LEFT1 (861)
if $ALT_LEFT1 == 0
	drawindexed = 3258, 1074, 0
endif
	; ALT_RIGHT (4632)
if $ALT_RIGHT == 0
	drawindexed = 10362, 4332, 0
endif
	; ALT_UP1 (6017)
if $ALT_UP1 == 0
	drawindexed = 26532, 14694, 0
endif
	; DOWN (5520)
if $DOWN == 0
	drawindexed = 22248, 41226, 0
endif
	; LEFT (3930)
if $LEFT == 0
	drawindexed = 17736, 63474, 0
endif
	; RIGHT (3519)
if $RIGHT == 0
	drawindexed = 13548, 81210, 0
endif
	; UP1 (9408)
if $UP1 == 0
	drawindexed = 41244, 94758, 0
endif

[TextureOverrideLaumaEyeIB]
hash = c3e809a5
handling = skip
drawindexed = auto

[TextureOverrideLaumaEyeHead]
hash = c3e809a5
match_first_index = 0
ib = ResourceLaumaEyeHeadIB
ps-t0 = ResourceLaumaEyeHeadDiffuse
ps-t1 = ResourceLaumaEyeHeadLightMap

[TextureOverrideLaumaHairIB]
hash = 5a1345c9
handling = skip
drawindexed = auto

[TextureOverrideLaumaHairHead]
hash = 5a1345c9
match_first_index = 0
ib = ResourceLaumaHairHeadIB
ps-t0 = ResourceLaumaHairHeadNormalMap
ps-t1 = ResourceLaumaHairHeadDiffuse
ps-t2 = ResourceLaumaHairHeadLightMap
run = CommandList\global\ORFix\ORFix

[TextureOverrideLaumaFaceHeadDiffuse]
hash = 43e49ac3
this = ResourceLaumaFaceHeadDiffuse


; CommandList -----------------------

; Resources -------------------------

[ResourceLaumaPosition]
type = Buffer
stride = 40
filename = LaumaPosition.buf

[ResourceLaumaBlend]
type = Buffer
stride = 32
filename = LaumaBlend.buf

[ResourceLaumaTexcoord]
type = Buffer
stride = 20
filename = LaumaTexcoord.buf

[ResourceLaumaEyePosition]
type = Buffer
stride = 40
filename = LaumaEyePosition.buf

[ResourceLaumaEyeBlend]
type = Buffer
stride = 32
filename = LaumaEyeBlend.buf

[ResourceLaumaEyeTexcoord]
type = Buffer
stride = 12
filename = LaumaEyeTexcoord.buf

[ResourceLaumaHairPosition]
type = Buffer
stride = 40
filename = LaumaHairPosition.buf

[ResourceLaumaHairBlend]
type = Buffer
stride = 32
filename = LaumaHairBlend.buf

[ResourceLaumaHairTexcoord]
type = Buffer
stride = 12
filename = LaumaHairTexcoord.buf

[ResourceLaumaHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LaumaHead.ib

[ResourceLaumaBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LaumaBody.ib

[ResourceLaumaDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LaumaDress.ib

[ResourceLaumaEyeHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LaumaEyeHead.ib

[ResourceLaumaHairHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LaumaHairHead.ib

[ResourceLaumaHeadNormalMap]
filename = LaumaHeadNormalMap.dds

[ResourceLaumaHeadDiffuse]
filename = LaumaHeadDiffuse.dds

[ResourceLaumaHeadLightMap]
filename = LaumaHeadLightMap.dds

[ResourceLaumaBodyDiffuse]
filename = LaumaBodyDiffuse.dds

[ResourceLaumaBodyLightMap]
filename = LaumaBodyLightMap.dds

[Resource1LaumaBodyDiffuse]
filename = 1LaumaBodyDiffuse.dds

[Resource1LaumaBodyLightMap]
filename = 1LaumaBodyLightMap.dds

[ResourceLaumaDressNormalMap]
filename = LaumaDressNormalMap.dds

[ResourceLaumaDressDiffuse]
filename = LaumaDressDiffuse.dds

[ResourceLaumaDressLightMap]
filename = LaumaDressLightMap.dds

[ResourceLaumaEyeHeadDiffuse]
filename = LaumaEyeHeadDiffuse.dds

[ResourceLaumaEyeHeadLightMap]
filename = LaumaEyeHeadLightMap.dds

[ResourceLaumaHairHeadNormalMap]
filename = LaumaHairHeadNormalMap.dds

[ResourceLaumaHairHeadDiffuse]
filename = LaumaHairHeadDiffuse.dds

[ResourceLaumaHairHeadLightMap]
filename = LaumaHairHeadLightMap.dds

[ResourceLaumaFaceHeadDiffuse]
filename = LaumaFaceHeadDiffuse.dds



; .ini generated by XXMI (XX7IKs-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues